//
//  ViewController.m
//  RunLoop延迟加载图片
//
//  Created by 中创 on 2019/9/12.
//  Copyright © 2019 中创慧谷. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@property (nonatomic, strong) UIImageView * imageView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor greenColor];
    UITextView * textView = [[UITextView alloc] initWithFrame:CGRectMake(100, 50, 100, 50)];
    [self.view addSubview:textView];
    textView.text = @"复健科拉设计费了就离开房间爱SDK接口浪费时间卡视角分开了啥就废了可视对讲适得府君书大路口附近打扫房间施蒂利克荆防颗粒三大房间里看电视附近克里斯大放房间里SD卡荆防颗粒是打飞机附近克里斯大姐夫可拉伸的附近考虑到撒九分裤乐山大佛;";
    
    UIImageView * imageView = [[UIImageView alloc] initWithFrame:CGRectMake(100, 300, 50, 50)];
    [self.view addSubview:imageView];
    imageView.backgroundColor = [UIColor redColor];
    _imageView = imageView;
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    [self.imageView performSelector:@selector(setImage:) withObject:[UIImage imageNamed:@"0.头像"] afterDelay:3 inModes:@[NSDefaultRunLoopMode]];
}


@end
